import { User } from "../enums/user";

const initSate = {
  username: "",
  password: "",
  photo: "",
};

const UserReducer = (state = initSate, action) => {
  switch (action.type) {
    case User.SAVEINFO:
      return { ...state, ...action.data };
    default:
      return state;
  }
};

export default UserReducer;
